using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN HoSoService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: HoSoService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class HoSoService : IHoSoService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: HoSo_ID</para>
		/// <para>Output: HoSoEntity</para>
		///</summary>
		public HoSoEntity SelectOne(int HoSo_ID){
			HoSoDAO dao = new HoSoDAO();
			return dao.SelectOne(HoSo_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaHoSo</para>
		/// <para>Input: MaHoSo</para>
		/// <para>Output: HoSoEntity</para>
		///</summary>
		public HoSoEntity SelectOneByMaHoSo(string MaHoSo){
			HoSoDAO dao = new HoSoDAO();
			return dao.SelectOneByMaHoSo(MaHoSo);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of HoSoEntity</para>
		///</summary>
		public List<HoSoEntity> SelectAll(){
			HoSoDAO dao = new HoSoDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			HoSoDAO dao = new HoSoDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of HoSoEntity</para>
		///</summary>
		public List<HoSoEntity> SelectAllFilter(string strFilter){
			HoSoDAO dao = new HoSoDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			HoSoDAO dao = new HoSoDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: HoSoEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(HoSoEntity o){
			HoSoDAO dao = new HoSoDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: HoSoEntity</para>
		/// <para>Output: HoSoEntity</para>
		///</summary>
		public HoSoEntity SaveRet(HoSoEntity o){
			HoSoDAO dao = new HoSoDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of HoSoEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<HoSoEntity> list){
			HoSoDAO dao = new HoSoDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of HoSoEntity</para>
		/// <para>Output: List of HoSoEntity</para>
		///</summary>
		public List<HoSoEntity> SaveListRet(List<HoSoEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: HoSoEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(HoSoEntity o){
			HoSoDAO dao = new HoSoDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of HoSoEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<HoSoEntity> list){
			HoSoDAO dao = new HoSoDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaHoSo</para>
		/// <para>Input: NewMaHoSo,HoSo_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaHoSo(string NewMaHoSo,int HoSo_ID){
			HoSoDAO dao = new HoSoDAO();
			return dao.UpdateMaHoSo(NewMaHoSo,HoSo_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenHoSo</para>
		/// <para>Input: NewTenHoSo,HoSo_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenHoSo(string NewTenHoSo,int HoSo_ID){
			HoSoDAO dao = new HoSoDAO();
			return dao.UpdateTenHoSo(NewTenHoSo,HoSo_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaHoSo</para>
		/// <para>Input: NewMoTaHoSo,HoSo_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaHoSo(string NewMoTaHoSo,int HoSo_ID){
			HoSoDAO dao = new HoSoDAO();
			return dao.UpdateMoTaHoSo(NewMoTaHoSo,HoSo_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateNopKhiNhapHoc</para>
		/// <para>Input: NewNopKhiNhapHoc,HoSo_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNopKhiNhapHoc(bool NewNopKhiNhapHoc,int HoSo_ID){
			HoSoDAO dao = new HoSoDAO();
			return dao.UpdateNopKhiNhapHoc(NewNopKhiNhapHoc,HoSo_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: HoSoEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(HoSoEntity o){
			HoSoDAO dao = new HoSoDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: HoSo_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int HoSo_ID){
			HoSoDAO dao = new HoSoDAO();
			return dao.DeleteByID(HoSo_ID);
		}
		#endregion

		#region Select,delete by HoSo_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END HoSoWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

